/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.ex;

import java.time.LocalTime;
import java.util.Calendar;
import java.util.Locale;

/**
 * <p>Project: jse2204 - Ex6
 * <p>Powered by webrx On 2022-09-01 08:59:20
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex6 {
    public static void main(String[] args) {
        //分时问候
        int h = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
        int hh = LocalTime.now().getHour();
        if(h>=8 && h<12){
            System.out.println("上午好");
        }else if(h>=12 && h<14){
            System.out.println("中午好");
        }else{
            System.out.println("下午好");
        }

    }
}
